package com.example.travelservlet.entity;

import com.example.travelservlet.idclass.DynamicImagePk;
import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.IdClass;
import java.io.Serializable;

@Data
@Entity
@IdClass(DynamicImagePk.class)
public class DynamicImages implements Serializable {
    @Id
    private String dynamicId;
    @Id
    private String url;
}
